﻿using System;
using System.Collections.Generic;
using System.Text;
using MyCadDll;
using MyCadDll.MyObject;
//using CadStrategy2013.cadData;

namespace ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Chart chart = new Chart();
            #region chart中文字列表x方向排序或y排序
            //chart.TextList.Sort(new MyCompareClass_X<MyText>());
            //foreach (MyText txt in chart.TextList)
            //{
            //    System.Console.WriteLine(txt.Text);
            //}
            #endregion

            #region 显示文字的名称 行数 列数
            //chart.TextList.Sort(new MyCompareClassFromLine_X<MyText>()); 
            //foreach (MyText txt in chart.TextList)
            //{
            //    string str = string.Format("{0,-15}" + " " + "{1,-15}" + " " + "{2,-15} " + " ", txt.Text, txt.IRow, txt.ICol);

            //    System.Console.WriteLine(str);
            //}
            #endregion
            //int i = 0;
            //foreach (MyLine line in chart.RowLineList)
            //{
            //    string str = string.Format("{4}=X1:{0,-10}X2:{1,-10}Y1:{2,-10}Y2:{3,-10}", (int)line.P1.X, (int)line.P2.X, (int)line.P1.Y, (int)line.P2.Y, ++i);
            //    System.Console.WriteLine(str);
            //}
            #region 测试查找分线盘名称
            //FenXianPan fxp = new FenXianPan(chart.ConvertDataTable());
            //fxp.GetPeiXianBiao();
            #endregion

            System.Console.Read();
        }
        
    }
}
